
#ifndef _SERIAL_H
#define _SERIAL_H

#ifndef __SERIAL_H__
#define __SERIAL_H__

#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <errno.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <termios.h>

extern unsigned char cmd_STOP[5];              //停止
extern unsigned char cmd_ADVANCE[5];           //前进
extern unsigned char cmd_RETREAT[5];           //后退
extern unsigned char cmd_TURN_LEFT[5];         //左转
extern unsigned char cmd_TURN_RIGHT[5];        //右转
extern unsigned char cmd_TURN_LEFT_FRONT[5];   //左前传
extern unsigned char cmd_TURN_LEFT_BEHIND[5];  //左后转
extern unsigned char cmd_TURN_RIGHT_FRONT[5];  //右前转
extern unsigned char cmd_TURN_RIGHT_BEHIND[5]; //右后转

struct termios Opt;

int uart_init();

#endif

#endif
